package com.gmu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TblUser对象", description="用户信息")
public class TblUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "身份证")
    private String idNumber;

    @ApiModelProperty(value = "手机号")
    private String telephone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "角色id(学生、老师....)")
    private Integer roleId;

    @ApiModelProperty(value = "单位id")
    private Integer unitsId;

    @ApiModelProperty(value = "删除标志-1删除-0存在")
    private Integer delFlag;

    @ApiModelProperty(value = "学生信息")
    @TableField(exist = false)
    private TblStudent tblStudent;

    @ApiModelProperty(value = "教师信息")
    @TableField(exist = false)
    private TblTeacher tblTeacher;

    @ApiModelProperty(value = "采样信息")
    @TableField(exist = false)
    private TblSample tblSample;


}
